package kr.pe.asuraho.zhibogo;

import kr.pe.asuraho.BaseService;

public class User extends BaseService{
	
	public String userCreateForm(){
		return "/WEB-INF/jsp/userCreate.jsp";
	}
	
	public String userForm(){
		System.out.println(getParamMap());
		///////////////// 아이디 짱나 login_id, id
		add("userInfo", getSqlSession().selectOne("kr.pe.asuraho.selectTorUserInfo", getParamMap()));
		return "/WEB-INF/jsp/userCreate.jsp";
	}
	
	public String userCreate(){
		getSqlSession().insert("kr.pe.asuraho.insertTorUser", getParamMap());
		return "zHibogo.do?method=list";
	}
	
	public String userUpdate(){
		getSqlSession().update("kr.pe.asuraho.updateTorUser", getParamMap());
		return "zHibogo.do?method=list";
	}

}